<html>

<head>
<title>Swing JPanel Wizard</title>
<link href="../../../book.css" rel="stylesheet" type="text/css" />
</head>

<body>

<h1>Swing JPanel Wizard</h1>

<table border="0" cellpadding="0" cellspacing="0" width="730">
  <tr>
    <td><img src="images/wizard_swing_jpanel0.gif" align="left" hspace="10">Subclasses of the Swing JPanel class can be
              created using the Swing JPanel&nbsp; wizard. The wizard can be
              selected from the drop down wizard menu or from the
              Eclipse New wizard.
              <p>To use the wizard, select the project source folder and package
              to contain the class. Then enter the class name and hit the Finish
              button. 
      <p>The <b>javax.swing.JPanel</b> class is the default
              superclass. You can select an alternative superclass by entering
              its name into the <b>Superclass</b> field or by choosing it via
              the bottom <b>Browse</b> button.</td>
  </tr>
  <tr>
    <td><br>
	<img src="images/wizard_swing_jpanel1.gif">&nbsp; <img src="images/wizard_swing_jpanel2.gif"></td>
  </tr>
  <tr>
    <td>
	<p><br>
	The wizard generates the following code.</dd> 
        <font SIZE="2" COLOR="#7f0055"><b>
		<blockquote>
			<p><font face="Courier">import</font></b></font><font face="Courier" SIZE="2"> 
		javax.swing.JPanel;<br>
			</font><font SIZE="2" COLOR="#7f0055"><b>
			<font face="Courier"><br>
			public</font></b></font><font face="Courier"><font SIZE="2"> </font>
			<font SIZE="2" COLOR="#7f0055"><b>class</b></font><font SIZE="2"> 
		SwingJPanelTest </font><font SIZE="2" COLOR="#7f0055"><b>extends</b></font></font><font face="Courier" SIZE="2"> 
		JPanel {<br>
			</font><font SIZE="2" COLOR="#7f0055" face="Courier"><b>&nbsp;&nbsp;&nbsp; public</b></font><font face="Courier" SIZE="2"> 
		SwingJPanelTest() {<br>
			</font><font SIZE="2" COLOR="#7f0055" face="Courier"><b>&nbsp;&nbsp;&nbsp;
			</b></font><font SIZE="2"><font face="Courier">}<br>
			}</font></p>
	</blockquote>
	</font>
      <p>When editing Swing JPanels, all of the standard Swing layouts,
      containers, widgets and menus are available. Custom or third party
      controls may be added via the <b>
		<a href="../../../com.instantiations.designer.doc.user/html/userinterface/palette.html">Choose 
		Component</a></b> command. You may also
      preview your panel using different look and feels using the drop down look
      and feel list in the toolbar. </p>
	<p>Use the <b>Expose property...</b> command added to
	<a href="../../../com.instantiations.designer.doc.user/html/userinterface/property_pane_context_menu.html">
	property pane context menu</a> 
	to expose any widget property as a public property of the class. Use the <b>Expose component...</b> 
	command added to the popup menu in the <b>
	<a href="../../../com.instantiations.designer.doc.user/html/userinterface/design_view.html">
	Design View</a></b> to add an 
	accessor for any widget.</p>
	<p>
	<img border="0" src="images/expose_property_menu.gif" width="305" height="249" align="top">&nbsp;
	<img border="0" src="images/expose_component_menu.gif" width="237" height="332" align="top"></p>
    </td>
  </tr>
</table>
</body>
</html>
